 {
        
        var o = require("../UIManager/UISoundManager.js");
        cc.Class({
            extends: cc.Component,
            properties: {
                nodePlayerItem1: {
                    default: null,
                    type: cc.Node
                },
                nodePlayerItem2: {
                    default: null,
                    type: cc.Node
                },
                nodePlayerItem3: {
                    default: null,
                    type: cc.Node
                },
                nodePlayerItem4: {
                    default: null,
                    type: cc.Node
                }
            },
            onLoad: function () {
                var e = Global.utils.searchNode(this.node, "Mask");
                e.on(cc.Node.EventType.TOUCH_START, this.onTouchStart.bind(this), this), e.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd.bind(this), this),
                    e.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchCancel.bind(this), this);
            },
            start: function () {
            },
            onShowResult: function (e) {
                this.node.setScale(e);
            },
            onTouchStart: function (e) {
                this.onShowResult(0), e.stopPropagation();
            },
            onTouchEnd: function (e) {
                this.onShowResult(1), e.stopPropagation();
            },
            onTouchCancel: function (e) {
                this.onShowResult(1), e.stopPropagation();
            },
            onDestroy: function () {
                Global.notificationCenter.offAll(this);
            },
            bindData: function (e) {
                for (var t = -99999999, n = 0; n < e.detail.length; n++) t < e.detail[n].total_delta_score && (t = e.detail[n].total_delta_score);
                for (n = 0; n < e.detail.length; n++) {
                    var o = null;
                    switch (n) {
                        case 0:
                            o = this.nodePlayerItem1;
                            break;

                        case 1:
                            o = this.nodePlayerItem2;
                            break;

                        case 2:
                            o = this.nodePlayerItem3;
                            break;

                        case 3:
                            o = this.nodePlayerItem4;
                    }
                    if (o) o.getComponent("GameTotalResutlItemController").bindData(e.detail[n], t, Global.tableModel.getHostUserId());
                }
            },
            onClickClose: function () {
                o.playEffect("select");
                SceneHelper.loadScene("homeScene");
                var e = Global.tableModel.getRoomId(), t = Global.tableModel.getTableId(),
                    n = Global.tableModel.getSeatId();
                if (0 != e && 0 != t) return cc.error("GameTotalResultController onClickClose", "roomId = " + e + " tableId = " + t + " seatId = " + n),
                    void Global.msgHandler.requestTableLeave(e, t, n);
            },
            onClickShare: function () {
                o.playEffect("select"), console.log("onShareBtn");
                var e = JSON.stringify({
                    shareFriRoomResult: 1
                }), t = {
                    share_type: Global.config.sharePointId.friRoomShare
                };
                tywx.PropagateInterface.getWeightShareConfigInfoByTypeWithShare(t, e, function (e) {
                    console.log("onShareBtn share succCallback");
                });
            }
        })
    }